package com.qyhl.module_practice.donate.detail;

public class PracticeDonateDetailPresenter implements PracticeDonateDetailContract.PracticeDonateDetailPresenter {
    private PracticeDonateDetailActivity mView;
    private PracticeDonateDetailModel mModel;

    PracticeDonateDetailPresenter(PracticeDonateDetailActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeDonateDetailModel(this);
    }

    @Override
    public void doDonate(String addrId, String name, String address, String phone, String posCode, String content, String remark) {
        mModel.doDonate(addrId, name, address, phone, posCode, content, remark);
    }

    @Override
    public void donateSuccess(String msg) {
        mView.donateSuccess(msg);
    }

    @Override
    public void donateError(String msg) {
        mView.donateError(msg);
    }
}
